package models

type Adminuser struct {
	ID         int64    `orm:"pk;auto;column(id)" json:"id"`
	Name       string   `orm:"column(name)" json:"name"`
	Username   string   `orm:"column(username)" json:"username"`
	Pwd        string   `orm:"column(pwd)" json:"pwd"`
	Quanxianid int64    `orm:"column(quanxianid)" json:"quanxianid"`
	Quanxian   Quanxian `gorm:"ForeignKey:Quanxianid;AssiciationForeignKey:Id"`
}

type Adminusersql struct {
	ID           int64  `orm:"pk;auto;column(id)" json:"id"`
	Name         string `orm:"column(name)" json:"name"`
	Username     string `orm:"column(username)" json:"username"`
	Pwd          string `orm:"column(pwd)" json:"pwd"`
	Quanxianid   int64  `orm:"column(quanxianid)" json:"quanxianid"`
	Quanxianname string `orm:"column(quanxianname)" json:"quanxianname"`
}

func (Adminuser) TableName() string {
	return "adminuser"
}

type Quanxian struct {
	ID      int64  `gorm:"column:id" db:"id" json:"id" form:"id"`
	Name    string `gorm:"column:name" db:"name" json:"name" form:"name"`
	Content string `gorm:"column:content" db:"content" json:"content" form:"content"`
}

func (Quanxian) TableName() string {
	return "quanxian"
}

// Adminlog undefined
type Adminlog struct {
	ID      int64  `json:"id" gorm:"id"`
	Adminid int64  `json:"adminid" gorm:"adminid"`
	Addtime int64  `json:"addtime" gorm:"addtime"`
	Content string `json:"content" gorm:"content"`
}
type Adminlogsql struct {
	ID        int64  `json:"id" gorm:"id"`
	Adminid   int64  `json:"adminid" gorm:"adminid"`
	Addtime   int64  `json:"addtime" gorm:"addtime"`
	Content   string `json:"content" gorm:"content"`
	Adminname string `json:"adminname" gorm:"adminname"`
}

// TableName 表名称
func (*Adminlog) TableName() string {
	return "adminlog"
}

// Pustywd undefined
type Pustywd struct {
	ID        int64  `json:"id" gorm:"id"`
	Uid       int64  `json:"uid" gorm:"uid"`
	Addtime   int64  `json:"addtime" gorm:"addtime"`
	Procureid int64  `json:"procureid" gorm:"procureid"`
	Content   string `json:"content" gorm:"content"`
}
type Pustywdsql struct {
	ID        int64  `json:"id" gorm:"id"`
	Uid       int64  `json:"uid" gorm:"uid"`
	Addtime   int64  `json:"addtime" gorm:"addtime"`
	Procureid int64  `json:"procureid" gorm:"procureid"`
	Content   string `json:"content" gorm:"content"`
	Phone     string `gorm:"column:phone" json:"phone"`       //  手机号
	Nickname  string `gorm:"column:nickname" json:"nickname"` //  昵称
}

// TableName 表名称
func (*Pustywd) TableName() string {
	return "pustywd"
}
